package edu.gdkm.dao;

import edu.gdkm.pojo.Classinfo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public class ClassinfoXml {
    @Select("select * from tb_classinfo where id=#{id}")
    public Classinfo findById(Integer id) {
        return null;
    }
    @Select("select * from tb_classinfo")
    public List<Classinfo> findAll() {
        return null;
    }
    @Insert("insert into tb_classinfo(name,number) values(#{name},#{number})")
    public boolean save(Classinfo classinfo) {
        return false;
    }
    @Update("update tb_classinfo set name=#{name},number=#{number} where id=#{id}")
    public boolean update(Classinfo classinfo) {
        return false;
    }
    @Delete("delete from tb_classinfo where id= #{id}")
    public boolean delete(Integer id) {
        return false;
    }
}
